set more off

use dataset, clear

keep if year == 2012

preserve
	keep if overridep == 1
	save tmp, replace
restore

#delimit;

spmap
	overridep using "coords"
	,
		id(gisid) 
		fcolor(
			gs14
			gs9 
								
		)
		ocol(white)
		clmethod(unique)
		legend(off)
		label(data(tmp) label(town) xcoord(x_c) ycoord(y_c) color(black) pos(10))
		;

#delimit cr

erase tmp.dta

gr export "figure A8.eps", replace

shell convert -resize 1024x768 -density 300 "figure A8.eps" -flatten "figure A8.png"

shell rm "figure A8.eps"
